Get Ban History Made By Admin
GET /admin/banHistoryByAdmin/:username
Description
Returns paginated ban-history items created by a specific admin account.
Request Parameters
Requires Authentication: true
Requires Admin Role: true
PATH PARAMS
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Admin username. |
QUERY PARAMS
| Name | Type | Required | Description |
|---|---|---|---|
type | string | No | post or user. Defaults to post. |
page | number | No | Page number. Default is 1. |
maxPageSize | number | No | Page size. Maximum is 20. |
Success Response
{
"message": "banned posts by luciano fetched successfully",
"data": [],
"page": 1,
"pageSize": 0,
"maxPageSize": 20,
"totalPages": 0,
"totalCount": 0
}
Error Response
| Code | Description |
|---|---|
| 401 | Missing or invalid access token |
| 402 | User is not an admin |
| 404 | User not found |
| 500 | Server error |